/**
 * file
 */
package com.tdkj.model.user;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * 
 * FileName: BeanValidateEmil.java
 * 
 * @Description: TODO(用一句话描述该文件做什么)
 * 
 *               All rights Reserved, Designed By ZTE-ITS
 * 
 *               Copyright: Copyright(C) 2010-2011
 * 
 *               Company 天成科技有限公司
 * 
 * @author: 李兴建
 * 
 * @version V1.0
 * 
 *          Createdate: 2012-8-19 下午08:59:26
 * 
 * 
 * 
 *          Modification History:
 * 
 *          Date Author Version Discription
 * 
 * 
 * 
 * 
 * 
 * 
 *          
 *          ----------------------------------------------------------------------
 *          -------------
 * 
 *          2012-8-19 李兴建 1.0 1.0
 * 
 *          Why & What is modified: <修改原因描述>
 */
@Entity
@Table(name = "xnky_user_validateEmil")
public class BeanValidateEmil extends BaseEntity {

	private static final long serialVersionUID = -5025908604259627520L;
	// 随机验证
	private String randomStr;
	// 用户
	private BeanUser user;
	// 发送验证时间
	private Timestamp senderTime;

	/**
	 * 
	 */
	public BeanValidateEmil() {
		// TODO Auto-generated constructor stub
	}

	@ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.REFRESH })
	@JoinColumn(name = "user_id")
	public BeanUser getUser() {
		return user;
	}

	public void setUser(BeanUser user) {
		this.user = user;
	}

	/**
	 * @return the randomStr
	 */
	public String getRandomStr() {
		return randomStr;
	}

	/**
	 * @param randomStr
	 *            the randomStr to set
	 */
	public void setRandomStr(String randomStr) {
		this.randomStr = randomStr;
	}

	/**
	 * @return the senderTime
	 */
	public Timestamp getSenderTime() {
		return senderTime;
	}

	/**
	 * @param senderTime
	 *            the senderTime to set
	 */
	public void setSenderTime(Timestamp senderTime) {
		this.senderTime = senderTime;
	}

}
